<header>
    <div class="title">
        <a href="">Roles</a><span> > </span><strong>Registrar nuevo rol</strong>
    </div>
    <div class="shortcuts">
        <a href=""></a>
    </div>
    <div class="help">
        <a href="">Ayuda</a>
    </div>
</header>
<div class="sidebar">
    <div id="rol-create" class="content">
       	<h3>Nuevo Rol</h3>
        <?php if (!empty($validacion)) { ?><h4 style='color:red;'><?php echo $validacion; ?></h4><?php } ?>
    	<form id="rol-create-form" action="#" method="post" enctype="multipart/form-data">
    		<input name="form-action" type="hidden" value="create-rol" />
            <div class="form-fields">
                <label>
                    <span class="name">Nombre:</span>
                    <input type="text" id="rol-create-form-nombre" name="nombre" value="<?php if ($rol->get('roles','nombre')) echo html_entity_decode($rol->get('roles','nombre')); ?>" placeholder="Ingrese el nombre aqui" autofocus />
                    <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <label>
                    <span class="name">Descripcion:</span>
                    <textarea name='descripcion'><?php if ($rol->get('roles','descripcion')) echo html_entity_decode($rol->get('roles','descripcion')); ?></textarea>
                    <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
            </div>
            <div class="form-buttons">
                <button type="submit" class="button important blue"><span class="icon circled-plus"></span> Registrar Rol</button>
                <a class="button important red" href="<?php echo $host .'roles/'; ?>">Cancelar</a>
            </div>
        </form>
    </div>
</div>